import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import { createPinia } from 'pinia';
import Element from './plugins/element';
import 'normalize.css/normalize.css';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';

const app = createApp(App);
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate); // 开启 pinia 数据持久化

app.use(router);
app.use(pinia);
app.use(Element);
app.mount('#app');
